import { Component, Node, Sprite } from "cc";
import { UIEnum } from "../Enum";
import { UIManager } from "../Runtime/UIManager";

export abstract class UIComponent extends Component {

    setMaskEffect() {
        const mask = this.node.getChildByName('mask')
        if (mask) {
            mask.getComponent(Sprite).spriteFrame = UIManager.Ins.getMaskSpriteFrame()
        }
    }
    abstract show(data?: any, parent?: Node): void
    public type: UIEnum

}